<template>
  <el-row>
    <el-col :xs="24" :lg="12">
      <el-card class="box-card">
        <template #header>
          <div class="search-header">
            <span>
              线上热门搜索
            </span>
            <i class="el-icon-more" />
          </div>
        </template>
        <div class="line-picture">
          <LineData />
        </div>
        <el-table :data="tableData" border>
          <el-table-column label="排名" type="index" width="50">
          </el-table-column>
          <!-- el-icon-caret-bottom -->
          <el-table-column
            prop="date"
            label="搜索关键字"
            icon="el-icon-caret-top"
          >
          </el-table-column>
          <el-table-column
            prop="date"
            label="用户数"
            sortable
            
          >
          </el-table-column>
          <el-table-column prop="date" label="周涨幅"> </el-table-column>
        </el-table>
        <el-pagination
          :page-size="20"
          :pager-count="11"
          layout="->,prev, pager, next"
          :total="1000"
        >
        </el-pagination>
      </el-card>
    </el-col>
    <el-col :xs="24" :lg="12">
      <el-card class="box-card">
        <template #header>
          <div class="search-header">
            <span>
              线上热门搜索
            </span>
            <el-radio-group v-model="channel" size="mini">
              <el-radio-button label="1">全部渠道</el-radio-button>
              <el-radio-button label="2">线上</el-radio-button>
              <el-radio-button label="3">门店</el-radio-button>
            </el-radio-group>
          </div>
        </template>
        <div class="search-chart-container">
          <PieChart />
        </div>
      </el-card>
    </el-col>
  </el-row>
</template>

<script>
import PieChart from './components/PieChart.vue'
import LineData from './components/LineData.vue'
export default {
  name: 'MainList',
  components: {
    PieChart,
    LineData
  },
  data() {
    return {
      channel: '1',
      tableData: []
    }
  },
  methods: {}
}
</script>

<style lang="sass" scoped>
.search
  margin: 10px
.search-header
  display: flex
  justify-content: space-between
  align-items: center
  height: 28px
.search-chart-container
  height: 300px
</style>
